home *** CD-ROM | disk | other *** search
/ SGI Hot Mix 8 / Hot Mix 8.iso / .all / demos / Soft_Win / diskspaceScript (.txt) < prev    next >
Text File  |  1994-06-22  |  1KB  |  41 lines

  1. #!/bin/sh
  2.  
  3. #    diskspaceScript
  4. #
  5. #    Derived from:    SoftPC version
  6. #
  7. #    Author:        Anthony Shaughnessy
  8. #
  9. #    Created on:    7th April 1994
  10. #
  11. #    Sccs ID:    @(#)diskspaceScript.sh    1.2 4/19/94
  12. #
  13. #    Coding Stds.:    2.0
  14. #
  15. #    Purpose:    This script is called by the instwrap program when it
  16. #            detects that inst has complained about the installation
  17. #            due to a lack of disk space. It only really needs to
  18. #            output a meaningful message, with some hints as to 
  19. #            what the user can do about it. This is because the
  20. #            output from inst is directed to /dev/null, and so the
  21. #            user does not see the inst error messages.
  22. #
  23.  
  24. # If the SoftWindows directory is a symlink, then df it to find the real file
  25. # system it is on, otherwise df /usr.
  26. # We can't just blindly df /usr/lib/SoftWindows, because it may not exist.
  27.  
  28. echo "\n"
  29. if test -l /usr/lib/SoftWindows
  30. then
  31.     /bin/df -k /usr/lib/SoftWindows
  32. else
  33.     /bin/df -k /usr
  34. fi
  35. echo "\n"
  36.  
  37. echo "The installation has failed due to a lack of disk space on the file
  38. system containing the /usr/lib/SoftWindows directory. The SoftWindows
  39. installation requires approximately 32Mb of disk space.
  40. Please create some space before reinstalling."
  41.